Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

allow launchctl to stop mysql quickly #11

Merged
merged 1 commit into from Mar 27, 2013
Merged

allow launchctl to stop mysql quickly #11

merged 1 commit into from Mar 27, 2013

Conversation

indirect
Copy link
Contributor

When launchctl tries to stop a process, it sends INT, waits 20
seconds, and then sends KILL. mysqld happily ignores INT, and just
keeps running until it gets a KILL. That means this patch removes 20
seconds from the shutdown/restart of every machine running mysql via
boxen, which seems like a pretty nice improvement.

I wrote up how I discovered this a while ago:
http://andre.arko.net/2011/08/07/fixing-mac-shutdown-delays/

When launchctl tries to stop a process, it sends INT, waits 20
seconds, and then sends KILL. mysqld happily ignores INT, and just
keeps running until it gets a KILL. That means this patch removes 20
seconds from the shutdown/restart of every machine running mysql via
boxen, which seems like a pretty nice improvement.

I wrote up how I discovered this a while ago:
http://andre.arko.net/2011/08/07/fixing-mac-shutdown-delays/
@jbarnette
Copy link
Contributor

This has bothered me for a long time. ❤️

wfarr added a commit that referenced this pull request Mar 27, 2013
Allow launchctl to stop mysql quickly
@wfarr wfarr merged commit d528cb1 into boxen:master Mar 27, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants